package org.proxycine.gestsalles.model.entities;

import java.io.Serializable;

public class Cinema implements Serializable {
/**
	 * 
	 */
	private static final long serialVersionUID = -7418044211816741793L;
	
	private int id;
	private String nom;
	private String adresse;
	private String ville;
	private String codePostal;
	private Employe gerant;
	
	public Cinema(int id, String nom, String adresse, String ville,
			String codePostal, Employe gerant) {
		super();
		this.id = id;
		this.nom = nom;
		this.adresse = adresse;
		this.ville = ville;
		this.codePostal = codePostal;
		this.gerant = gerant;
	}
	
	public Cinema(int id, String nom, String adresse, String ville,
			String codePostal) {
		super();
		this.id = id;
		this.nom = nom;
		this.adresse = adresse;
		this.ville = ville;
		this.codePostal = codePostal;
		this.gerant = null;
	}
	
	public Cinema(String nom) {
		super();
		this.nom = nom;
	}

	public Cinema(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getAdresse() {
		return adresse;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	public String getVille() {
		return ville;
	}

	public void setVille(String ville) {
		this.ville = ville;
	}

	public String getCodePostal() {
		return codePostal;
	}

	public void setCodePostal(String codePostal) {
		this.codePostal = codePostal;
	}

	public Employe getGerant() {
		return gerant;
	}

	@Override
	public boolean equals(Object aThat) {
		
	    if ( this == aThat ) return true;
	    
	    if ( !(aThat instanceof Cinema) ) return false;
	    Cinema that = (Cinema) aThat;

	    return
	      this.id == that.id;
	  }
	
}
